﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smrf.NodeXL.GraphDataProviders.MediaWiki
{
    public class MediaWikiAPIException:Exception
    {        
        public string Type { get; set; }

        public MediaWikiAPIException(string type, string msg)
            : base(msg) 
        {
            Type = type;
        }

        public override string ToString()
        {
            return Type + ": " + base.ToString();
        }

        public MediaWikiAPIException()
        { }
    }
}